﻿<%@ Page Language="C#" MasterPageFile="~/master/PrivateThreeColumnLayout.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="private_ChangePassword" Title="Untitled Page" %>

<%@ Register Src="~/control/UserAccountMenu.ascx" TagPrefix="ucc" TagName="UserAccountMenu" %>
<%@ Register Src="~/control/VerticalAdvertise.ascx" TagPrefix="ucc" TagName="VerticalAdvertise" %>
<%@ Register Assembly="App_Code" Namespace="Pheonix.Fashionzoomer.UI" TagPrefix="ucc" %>

<asp:Content ID="LeftContent" ContentPlaceHolderID="LeftPlaceHolder" Runat="Server">
    <ucc:UserAccountMenu ID="userAccountMenu" runat="server" />
</asp:Content>
<asp:Content ID="MiddleContent" ContentPlaceHolderID="MiddlePlaceHolder" Runat="Server">
<table>
    <tr>
        <td><h5>Change Password</h5></td>
    </tr>
    <tr>
        <td class="pan myaccount" width="500px" align="center" >
            <table class="accountInfo" cellpadding="5" cellspacing="5">
                <tr>
                    <td colspan="2">
                        <ucc:ResponseMessage ID="uccResponseMessage" runat="server" ></ucc:ResponseMessage>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <br />
                        <asp:ValidationSummary ID="vlsChangePassword" runat="server" DisplayMode="BulletList" 
                            HeaderText="Please correct the following errors" CssClass="adminValidator"/>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><h5>Change Password</h5></td>
                </tr>
                <tr>
                    <td>
                        Old Password:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxOldPassword" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rqvOldPassword" runat="server"
                            Display="Dynamic" ErrorMessage="Please provide old password"
                            Text="*" ControlToValidate="tbxOldPassword" SetFocusOnError="true">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        New Password:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxNewPassword" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rqvNewPassword" runat="server"
                            Display="Dynamic" ErrorMessage="Please provide new password"
                            Text="*" ControlToValidate="tbxNewPassword" SetFocusOnError="true">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Confirm New Password:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxConfirmNewPassword" runat="server"></asp:TextBox>
                        <asp:CompareValidator ID="cmvConfirmNewPassword" runat="server"
                            Text="*" ErrorMessage="New passwords do not match" Display="Dynamic"
                            SetFocusOnError="true" ControlToCompare="tbxNewPassword" 
                            ControlToValidate="tbxConfirmNewPassword">
                        </asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ImageButton ID="ibtSave" runat="server" OnClick="Save_Click"
                            AlternateText="Update password" />
                    </td>
                    <td>
                        <asp:ImageButton ID="ibtCancel" runat="server" OnClick="Cancel_Click"
                            AlternateText="Go Back" CausesValidation="false" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</asp:Content>